<include file="Public/frame-header" />
</head>
<body class="J_scroll_fixed" style="min-width:800px;">
<div class="wrap J_check_wrap">
	<ul class="nav nav-tabs">
	   <li class="active"><a href="{:U('/Admin/Card/index')}">银行卡列表</a></li>
	   <if condition="$user_id">
	   	<li class=""><a href="{:U('/Admin/Card/add/id/'.$user_id)}">添加银行卡</a></li>
	   </if>
	</ul>
	<form class="well form-search" method="get" action="{:U('/Admin/Card/index')}">
		<div class="search_type cc mb10">
			<div class="mb10">
				<span class="mr20">分类： 
					银行卡： <input type="text" name="card" value="" style="width: 200px;" placeholder="银行卡"> &nbsp;&nbsp;
					持卡人姓名： <input type="text" name="cardHolder" value="" style="width: 200px;" placeholder="持卡人姓名"> &nbsp;&nbsp;
					<input type="submit" class="btn btn-primary" value="搜索">
				</span>
			</div>
		</div>
	</form>
	<form class="J_ajaxForm" action="" method="post">
		<div class="table-actions">
			<button class="btn btn-primary btn-small J_ajax_submit_btn" type="submit" 
			data-action="{:U('/Admin/Card/delete')}" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
		</div>
		<table class="table table-hover table-bordered table-list">
			<thead>
				<tr>
					<th width="15"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
					<th width="50">ID</th>
					<th width="100">美容师/美容院编号/用户</th>
					<th width="100">银行卡</th>
					<th width="100">银行名</th>
					<th width="100">持卡人姓名</th>
					<th width="100">状态</th>
					<th width="120">操作</th>
				</tr>
			</thead>
			<foreach name="list" item="vo">
			<tr>
				<td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.id}" ></td>
				<td>{$vo.id}</td>
				<td>{$vo.name}</td>
				<td>{$vo.card}</td>
				<td>{$vo.bank_name}</td>
				<td>{$vo.cardHolder}</td>
				<td >
					<if condition="$vo ['status'] neq 0">
						正在使用
					<else />
						已删除
					</if>
				</td>
				<td >
					<if condition="$vo ['status'] neq 0">
						<a href="{:U('/Admin/Card/delete/id/'.$vo['id'])}">删除</a>
					</if>
				</td>
			</tr>
			</foreach>
			<tfoot>
				<tr>
					<th width="15"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
					<th width="50">ID</th>
					<th width="100">美容师/美容院编号/用户</th>
					<th width="100">银行卡</th>
					<th width="100">银行名</th>
					<th width="100">银行卡姓名</th>
					<th width="100">状态</th>
					<th width="120">操作</th>
				</tr>
			</tfoot>
		</table>
		<div class="table-actions">
			<button class="btn btn-primary btn-small J_ajax_submit_btn" type="submit" 
			data-action="{:U('/Admin/Card/delete')}" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
		</div>
		<div class="pagination">{$Page}</div>
	</form>
	<script src="__ADMIN__/statics/js/common.js"></script>
</body>
</html>